projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1046d1
)
(x-create-frame-with-faces): Set threshold for "light color"
author
Richard M. Stallman
<rms@gnu.org>
Tue, 25 Jun 1996 18:19:09 +0000
(18:19 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 25 Jun 1996 18:19:09 +0000
(18:19 +0000)
at .6 of the total for white.
lisp/faces.el
patch
|
blob
|
history
diff --git
a/lisp/faces.el
b/lisp/faces.el
index 6489bbcfaa71eeabbecf7a81c47e75af1dbebd33..003262e6610f6e96a469499cb3a1ce3e1a0c544d 100644
(file)
--- a/
lisp/faces.el
+++ b/
lisp/faces.el
@@
-1101,7
+1101,10
@@
selected frame."
((< (apply '+ (x-color-values
(cdr (assq 'background-color params))
frame))
- (/ (apply '+ (x-color-values "white" frame)) 3))
+ ;; Just looking at the screen,
+ ;; colors whose values add up to .6 of the white total
+ ;; still look dark to me.
+ (* (apply '+ (x-color-values "white" frame)) .6))
'dark)
(t 'light)))
(modify-frame-parameters frame